
$(document).ready(function() {

 $('#elevatorCliker').mouseenter(function() {
								swipePart();
						});
	
 $('#analyticsCliker').mouseleave(function() {
		hideSwipe();
	});

  $('#analyticsCliker').click(function() {
  		$('#analyticsCliker').off('mouseleave');
		swipeComplite();
		$('#hideAnalytics').show();
	});
	
	$('#hideAnalytics').click(function() {
		hideSwipe();
		$('#hideAnalytics').hide();
		
		 $('#analyticsCliker').mouseleave(function() {
			hideSwipe();
		 });
		
	});

});



function swipePart(){
$("#swipe_wrapper").animate({ 
                    width: '200px',
                }, 
                    '1000'
                );
}

function hideSwipe(){
$("#swipe_wrapper").animate({ 
                    width: '0px',
                }, 
                    '1000'
                );
}

function swipeComplite(){
$("#swipe_wrapper").animate({ 
                    width: $("#mainwrap").width(),
                }, 
                    '1000'
                );
      
}